package com.iwdnb.gkgz.application.service;

import java.util.Date;
import java.util.List;

import com.iwdnb.gkgz.common.model.dto.StockDayData;
import com.iwdnb.gkgz.application.model.vo.StockType;

/**
 * @author wbc
 * @date 2020/05/03
 **/
public interface HistoryDataService {

    List<StockDayData> queryStockDayDataList(String code, String year);

    List<StockDayData> getDataByRange(String code, Date startDate, Date endData);

    void calcDataByRange(String code, Date startDate, Date endData);

    StockDayData getDayBeforeData(Date startDate);

    /**
     * 初始化股票数据
     * @param type
     */
    void loadStockDataList(StockType type);

    void loadStockDayData(String code, String year);

}
